#region Using References

using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

#endregion

namespace Beaker.OpenCube.Specs.Builders
{
	[ExcludeFromCodeCoverage]
	internal sealed class DictionaryBuilder
		: Builder<IDictionary<string, object>>
	{
		private readonly Dictionary<string, object> _dictionary = new Dictionary<string, object>();

		public DictionaryBuilder With( string key, object value )
		{
			_dictionary.Add( key, value );
			return this;
		}

		protected override IDictionary<string, object> OnBuild()
		{
			return new Dictionary<string, object>( _dictionary );
		}
	}
}